package com.atguigu.gmall.list.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(shards = 1,replicas = 1,indexName = "person",createIndex =true)
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Person {
    @Id
    private Long id;
    private String name;
    private String email;
    private String address;
}
